package org.jeecg.modules.monitoring.j_monitoring.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * mac添加的实体类
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class EndpointVO implements Serializable {


    private String id;
    private Integer groupId = 1008;  // groupId-1008  *
    private String mac; // mac地址- 00-00-00-00-00-00 *
    private String ip = "";
    private String vendor = "";  //供应商
    private String osName = "";  // 操作系统名称 *
    private String hostName = "";    // 主机名称 *
    private Integer isassigngroup = 1;
    private String assignGroup = "on";
    private Integer isassignpolicy = 0;
    private String policyId = "";    // 策略ID
    private String policyName = "";  // 策略名称
    private String description = "";
    private String ipAddress = "";

    private String node = "";
    private String port = "";
    private String deviceType = "请选择"; // 设备类型 *
    private Integer deviceTypeValue = 0;
    private String dhcpServerIp = "";
    private String dhcpServerInterfaceType = "请选择";
    private String dhcpServerInterfaceName = "";
    private Integer dhcpServerInterfaceTypeValue = 0;

    public Map<String, Object> toAddMap() {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("groupId", groupId);
        map.put("mac", mac);
        map.put("ip", ip);
        map.put("vendor", vendor);
        map.put("osName", osName);
        map.put("hostName", hostName);
        map.put("assignGroup", assignGroup);
        map.put("isassigngroup", isassigngroup);
        map.put("isassignpolicy", isassignpolicy);
        map.put("policyId", policyId);
        map.put("policyname", policyName);
        map.put("policyName", policyName);
        map.put("description", description);
        map.put("ipAddress", ipAddress);
        map.put("port", port);
        map.put("deviceType", deviceType);
        map.put("deviceTypeVaule", deviceTypeValue);
        map.put("dhcpServerIp", dhcpServerIp);
        map.put("dhcpServerInterfaceType", dhcpServerInterfaceType);
        map.put("dhcpServerInterfaceName", dhcpServerInterfaceName);
        map.put("dhcpServerInterfaceTypeVaule", dhcpServerInterfaceTypeValue);

        return map;
    }

    public Map<String, Object> toUpdateMap() {
        Map<String, Object> map = toAddMap();
        map.put("ids", id);
        return map;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    public String getOsName() {
        return osName;
    }

    public void setOsName(String osName) {
        this.osName = osName;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Integer getIsassigngroup() {
        return isassigngroup;
    }

    public void setIsassigngroup(Integer isassigngrou) {
        this.isassigngroup = isassigngrou;
    }

    public Integer getIsassignpolicy() {
        return isassignpolicy;
    }

    public void setIsassignpolicy(Integer isassignpolicy) {
        this.isassignpolicy = isassignpolicy;
    }

    public String getPolicyId() {
        return policyId;
    }

    public void setPolicyId(String policyld) {
        this.policyId = policyld;
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getDeviceTypeValue() {
        return deviceTypeValue;
    }

    public void setDeviceTypeValue(Integer deviceTypeVaul) {
        this.deviceTypeValue = deviceTypeVaul;
    }

    public String getDhcpServerIp() {
        return dhcpServerIp;
    }

    public void setDhcpServerIp(String dhcpServerIp) {
        this.dhcpServerIp = dhcpServerIp;
    }

    public String getDhcpServerInterfaceType() {
        return dhcpServerInterfaceType;
    }

    public void setDhcpServerInterfaceType(String dhcpServerlnterfaceType) {
        this.dhcpServerInterfaceType = dhcpServerlnterfaceType;
    }

    public String getDhcpServerInterfaceName() {
        return dhcpServerInterfaceName;
    }

    public void setDhcpServerInterfaceName(String dhcpServerlnterfaceTypeName) {
        this.dhcpServerInterfaceName = dhcpServerlnterfaceTypeName;
    }

    public Integer getDhcpServerInterfaceTypeValue() {
        return dhcpServerInterfaceTypeValue;
    }

    public void setDhcpServerInterfaceTypeValue(Integer dhcpServerlnterfaceTypeVaul) {
        this.dhcpServerInterfaceTypeValue = dhcpServerlnterfaceTypeVaul;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }
}
